<%- include("common/header.ejs")%>
    <div class="container col-xs-6 col-xs-offset-3">
        <h1>编辑笔记</h1>
        <form method="post" action="/note/edit">
            <div class="form-group">
              <label for="exampleInputEmail1">标题</label>
              <input type="text" class="form-control" value="<%=note.title%>" name="title" placeholder="请输入标题">
            </div>
            <div class="form-group">
              <label for="exampleInputPassword1">内容</label>
              <textarea name="content" class="form-control" cols="30" rows="10"><%=note.content%></textarea>
            </div>
            
            <input type="hidden" name="_id" value="<%=note._id%>">
            <button type="submit" class="btn btn-default">添加</button>
          </form>
    </div>

<%- include("common/footer.ejs")%>